package cn.edu.sjtu.stap.sdg.builder.test;

import cn.edu.sjtu.stap.cg.builder.*;
import cn.edu.sjtu.stap.cfg.builder.*;

public aspect DefaultSdgBuilderTest {

    public pointcut buildingPc() : execution(* build*Sdg(int));

    private long startTime = 0;

    private long endTime = 0;

    before() : buildingPc() {
        startTime = System.currentTimeMillis();
    }

    after() : buildingPc() {
        endTime = System.currentTimeMillis();
        System.out.println("[ Cost " + ": " + (endTime - startTime)
                + " ms ].\n MainFunction: " + thisJoinPoint.getSignature());
        System.out.flush();
    }

}
